package com.my.consumer.rpc;

import com.my.consumer.rpc.impl.HelloFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author marshal
 * @Date 2021-07-20 8:42 PM
 */
@FeignClient(value = "producer", path = "/hello", fallbackFactory = HelloFallback.class)
public interface HelloFeign {

    @GetMapping("/message/{msg}")
    String message(@PathVariable("msg") String msg);
}
